{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "user/partial/search_user_protocol_form.html" as search_user_protocol_form_macro %}
{% import "user/partial/user_protocol_table.html" as user_protocol_table_macro %}

{% block title %}万屏时代OPC--用户协议列表{% endblock %}

{% block panel_heading %}
  万屏时代OPC--用户协议列表
{% endblock %}

{% block panel_body %}
    {{ search_user_protocol_form_macro.gen_form(form, tag_form) }}

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'op_bp.user_protocol_list', **url_kwargs) }}
    </div>
    {% endif %}

    {{ user_protocol_table_macro.gen_table(data) }}

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'op_bp.user_protocol_list', **url_kwargs) }}
    </div>
    {% endif %}

{% endblock %}
